﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ARS.Control.Custom.Entity.Forms
{
    public class DecimalForm : FloatForm
    {
        public DecimalForm()
        {

        }

        protected override string GetInputTextHtml()
        {
            double d = 0;
            if (base.Field.Value != null)
            {
                string s = base.Field.Value.ToString();
                if (!string.IsNullOrEmpty(s))
                {
                    d = double.Parse(s);
                }
                
            }
            return string.Format(base.GetTrHtml(), string.Format("<input type=\"{2}\" name=\"{0}\" value='{1}' {{0}}>", base.Field.Html_Control_Name,
               d, this.inputType));
        }
    }
}
